<%--
    Document   : admin-managemembersBody
    Created on : Apr 26, 2011, 9:09:11 PM
    Author     : hussein
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib  prefix="ds" uri="/WEB-INF/tlds/displaycategories.tld" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<div id="page-body"><font size="3" color="red">
    <logic:notEqual name="mesg" scope="session" value="">
        <bean:write name="mesg" scope="session"/>
    </logic:notEqual></font><br>
    <h2>Add SuperModerator</h2> <font size="2">*Note: Super Moderator has all permessions on all forums.</font>
    <html:form action="addsuper.do"><h3>
        Enter new SuperModerator username: <html:text name="AddSuperBean" property="superName"></html:text>
        <html:submit value="OK"/></h3>
    </html:form><br>
    
    <hr><br><h2>Add Moderator</h2><br><font size="2">*Select Moderator Permessions</font>
    <html:form action="addmod.do"><h3>
        Enter new Moderator username: <html:text name="AddModBean" property="modName"/><br>
        Permission to edit post? <html:checkbox name="AddModBean" property="editpost"/><br>
        Permission to delete post? <html:checkbox name="AddModBean" property="deletepost"/><br>
        Permission to edit thread? <html:checkbox name="AddModBean" property="editthread"/><br>
        Permission to delete thread? <html:checkbox name="AddModBean" property="deletethread"/><br>
        Permission to edit user? <html:checkbox name="AddModBean" property="edituser"/><br>
        Permission to ban user? <html:checkbox name="AddModBean" property="banuser"/><br>
        Permission to susbend user? <html:checkbox name="AddModBean" property="suspenduser"/><br>
        <br><font size="2" color="white">*select Authorized Forums</font><br>
        <logic:iterate name="AddModBean" property="forums"id="forum">
            <bean:write name="forum" property="forumName"/>? 
            <html:multibox property="selected"><bean:write name="forum" property="forumID"/></html:multibox><br>
        </logic:iterate>
            <html:submit value="OK"/></h3>
    </html:form><br>
</div>